// CreatCalendar.cpp : implementation file
//

#include "stdafx.h"
#include "Calendar.h"
#include "CreatCalendar.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CCreatCalendar dialog


CCreatCalendar::CCreatCalendar(CWnd* pParent /*=NULL*/)
	: CDialog(CCreatCalendar::IDD, pParent)
{
	//{{AFX_DATA_INIT(CCreatCalendar)
	m_szPs = _T("");
	//}}AFX_DATA_INIT
}

CCreatCalendar::CCreatCalendar(UINT ids, CWnd *pParent)
	: CDialog(CCreatCalendar::IDD, pParent)
{
	TCHAR buff[131] = "\x0";
	::LoadString(AfxGetApp()->m_hInstance, ids, buff, 130);
	m_szPs = _T(buff);
}


void CCreatCalendar::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CCreatCalendar)
	DDX_Control(pDX, IDOK, m_OkButton);
	DDX_Text(pDX, IDC_PS, m_szPs);
	DDV_MaxChars(pDX, m_szPs, 130);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CCreatCalendar, CDialog)
	//{{AFX_MSG_MAP(CCreatCalendar)
	ON_EN_CHANGE(IDC_USERNAME, OnChangeUsername)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CCreatCalendar message handlers

void CCreatCalendar::OnChangeUsername() 
{
/*
	UpdateData(TRUE);

	if( m_szUserName.GetLength() <= 0 )
		m_OkButton.EnableWindow(FALSE);
	else
		m_OkButton.EnableWindow();
*/
//	UpdateData(TRUE);
}

